<!DOCTYPE html>

<html lang="en" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<head>
    <meta charset="UTF-8"/>
    <title>shiro index</title>
    <link rel="stylesheet" th:href="@{/css/layout-default-latest.css}">
</head>
<body>

<iframe name="content" class="ui-layout-center"
        th:src="@{/welcome}" frameborder="0" scrolling="auto"></iframe>
<div class="ui-layout-north">欢迎[
    <shiro:principal/>
    ]学习Shiro综合案例，<a th:href="@{/logout}">退出</a></div>
<div class="ui-layout-south">
    shiro后台权限管理
</div>
<div class="ui-layout-west">
    功能菜单<br/>
    <ul>
        <li th:each="menu:${menus}">
            <a th:href="${menu.url}" th:text="${menu.name}" target="content"></a>
        </li>
    </ul>

</div>


<script th:src="@{/js/jquery-1.11.0.min.js}"></script>
<script th:src="@{/js/jquery.layout-latest.min.js}"></script>
<script>
    $(function () {
        $(document).ready(function () {
            $('body').layout({applyDemoStyles: true});
        });
    });
</script>

</body>
</html>